package com.airbat.prize.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 指令单状态
 */
@AllArgsConstructor
@Getter
public enum ProcessStateEnum {

    RECEIVING("待接收", ProcessDetailActionedEnum.RECEIVE),

    ISSUING("待下发", ProcessDetailActionedEnum.ISSUE),

    DISPOSING("待处置", ProcessDetailActionedEnum.DISPOSE),

    AUDITING("待审核", ProcessDetailActionedEnum.AUDIT),

    REVOKING("撤销中", ProcessDetailActionedEnum.AUDIT),

    FINISHED("已办结", null),

    REFUSED("已拒绝", null),

    ;

    /**
     * 状态名称
     */
    private String name;

    /**
     * 状态对应的下个动作
     */
    private ProcessDetailActionedEnum nextAction;

}
